import FooterPreview from '../preview'
import FooterConfig from '../config'
import { DRAG_TYPE } from '../../../../dnd/drag_type'
import { nanoid } from 'nanoid'

const FooterScheme = {
  meta: {
    id: nanoid(),
    parent: null,
    // key: Math.random(),
    sort: 0,
    name: 'Footer',
    title: '页脚',
    type: DRAG_TYPE.custom,
    componentPreview: FooterPreview,
    componentConfig: FooterConfig
  },
  config: {
    attr: {
      effect: 'scrollx',
      scrollx: 500
    },
    style: {
      height: '50px',
      width: '100%'
    }
  },
  data: {
    raw: {
      list: []
    },
    context: null
  }
}

export default FooterScheme;